package cn.pegasus.teamwork.sysconfig.service;


import java.util.List;
import java.util.Map;

import cn.iyizhan.teamwork.base.service.BaseService;
import cn.pegasus.teamwork.sysconfig.entity.SysConfigFiles;
import cn.pegasus.teamwork.sysconfig.mapper.SysConfigFilesMapper;

/**
 * @author sine
 * @version 
 */
public interface SysConfigFilesService extends BaseService<SysConfigFiles,SysConfigFilesMapper>  {
    /**
     * 
     * @author buyuer
     * @Title: delById
     * @Description: 根据id删除
     */
    void delById(Integer id);
    
    /**
     * 
     * @author buyuer
     * @Title: queryFiles
     * @Description: 查询所有最新更新包
     */
    List<Map<String, Object>> queryFiles(List<String> md5, Integer appId, Integer fileType);
    
    /**
     * 
     * @author buyuer
     * @Title: findByMd5
     * @Description: 根据md5查询
     */
    SysConfigFiles findByMd5(String md5);
    
    /**
     * 
     * @author buyuer
     * @Title: detail
     * @Description: 根据对象查询
     */
    public SysConfigFiles detail(SysConfigFiles files);
    
    
    public Map<String, String> queryLastAppVersion(Map<String, String> map);

	SysConfigFiles getLastAppVersion(Map<String, String> reqMap);
	
	/**
	 * 查询最新版本
	 * @param map
	 * @return
	 */
	SysConfigFiles getNewVersion(Map<String,Object> map);
    
}
